package com.cqjtu.store.user.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: cqjtu-store
 * @Titile: UserRegDTO
 * @Author: Lucky
 * @Description: 用户注册封装类
 */
@Data
@ApiModel(value = "用户注册信息",description = "对用户注册的信息进行封装")
public class UserRegDTO {
    /*注册用户名*/
    @NotBlank(message = "注册用户名不能为空")
    @ApiModelProperty(value = "用户名",name = "username",example = "rose",required = true)
    private String username;
    /*注册的密码*/
    @ApiModelProperty(value = "用户密码",name = "password",example = "123456",required = true)
    @NotBlank(message = "注册密码不能为空")
    private String password;
    /*注册的重复密码*/
    @NotBlank(message = "注册的重复密码不能为空")
    @ApiModelProperty(value = "重复用户密码",name = "rePassword",example = "123456",required = true)
    private String rePassword;
}
